package com.weilus.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 *

 CREATE SEQUENCE seq_t_t_id;

 drop table t_t;

 CREATE TABLE t_t(
       id NUMERIC(11) PRIMARY KEY DEFAULT NEXTVAL('seq_t_t_id') NOT NULL,
       name VARCHAR(255),
       age INT(3),
       foo bool,
       create_time TIMESTAMP(6),
       update_time TIMESTAMP(6)
 );


 */
@Data
@Table("t_t")
public class TT {

    @Id
    private Long id;

    private String name;

    private Integer age;

    private Boolean foo;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}